/* 定位 */
.com-relative,.com-rela {
	position: relative;
}
.com-absolute,.com-abso {
	position: absolute;
}



/* flex布局 */
.com-flex {
	display: flex;
	flex-direction: row;
	align-items: center;
}
.com-flex-wrap {
	flex-wrap: wrap;
}
.com-flex-nowrap {
	flex-wrap: nowrap;
}
.com-col-top {
	align-items: flex-start;
}
.com-col-center {
	align-items: center;
}
.com-col-bottom {
	align-items: flex-end;
}
.com-row-left {
	justify-content: flex-start;
}
.com-row-center {
	justify-content: center;
}
.com-row-right {
	justify-content: flex-end;
}
.com-row-between {
	justify-content: space-between;
}
.com-row-around {
	justify-content: space-around;
}
.com-flex-col {
	display: flex;
	flex-direction: column;
}




/* 文本对齐方式 */
.com-text-left {
	text-align: left;
}
.com-text-center {
	text-align: center;
}
.com-text-right {
	text-align: right;
}



/* 定义flex等分 */
@for $i from 0 through 12 {
	.com-flex-#{$i} {
		flex: $i;
	}
}



/* 定义字体单位(rpx) */
@for $i from 20 through 48 {
	.com-font-#{$i} {
		font-size: $i + rpx;
	}
}



/* 定义内外边距，历遍1-80 */
@for $i from 0 through 80 {
	/* 只要双数和能被5除尽的数 */
	@if $i % 2 == 0 or $i % 5 == 0 {
		.com-margin-#{$i}, .com-m-#{$i} {
			margin: $i + rpx!important;
		}
		.com-padding-#{$i}, .com-p-#{$i} {
			padding: $i + rpx!important;
		}
		
		@each $short, $long in l left, t top, r right, b bottom {
			.com-m-#{$short}-#{$i} {
				margin-#{$long}: $i + rpx!important;
			}
			.com-p-#{$short}-#{$i} {
				padding-#{$long}: $i + rpx!important;
			}
			.com-margin-#{$long}-#{$i} {
				margin-#{$long}: $i + rpx!important;
			}
			.com-padding-#{$long}-#{$i} {
				padding-#{$long}: $i + rpx!important;
			}
		}
	}
}



/* H5的时候，隐藏滚动条 */
::-webkit-scrollbar {
	display: none;  
	width: 0 !important;  
	height: 0 !important;  
	background: transparent;  
}



image{
	display: block;
}


.com-card{
	background: #fff;
	padding: 32rpx;
	border-radius: 24rpx;
}
.com-rela-content{
	position: relative;
	z-index: 10;
}
.com-font-bold{
	font-weight: bold;
}
.com-lh-40{
	line-height: 40rpx;
}